package com.itheima.jobs;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.OrderSettingDel;

import java.util.Date;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
public class TestJob {

    @Reference
    OrderSettingDel orderSettingDel;

    public void run(){
        System.out.println("定时任务执行了....." + new Date());
        orderSettingDel.clear(new Date());

    }
}
